import { createSelector } from "@reduxjs/toolkit";
import { AppState } from "@store/index";;
type Credentials = /*unresolved*/ any
// 用于获取 token 的选择器
export const selectToken = createSelector<
    [(state: AppState) => Credentials],
    string
>(
    (state) => state.credentialsReducer,
    (state) => state.token
);